<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>部门修改</title>
<link href="<?php echo base_url() ?>css/base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url() ?>css/common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url() ?>css/pages.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js/Clock.js"></script>
<!--[if IE 6]><script type="text/javascript" src="<?php echo base_url() ?>js/pngfix.js"></script><![endif]-->
<script type="text/javascript" src="<?php echo base_url() ?>js/menu.js"></script>
</head>

<body>
<div class="oaindex">
	<?php include 'system_header.php' ?>
    <div class="clearfix">
        <?php include 'system_left.php' ?>
		
		<!-- -----------------------------------编辑区---------------------------------- -->
		
        <div class="right_box"><form id="form1" name="form1" method="post" action="/index.php/depart/edit/<?php echo $id ?>/do">
            <div class="the_current">
				<span></span>
				<p>当前位置：首页&nbsp;&nbsp;>>&nbsp;&nbsp;部门修改</p>
            </div>
			<div class="ou_butpos">
            	
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="table_left">所属部门：</td>
                        <td>
	                    	<select name="pid" style="font-family:Arial">
							<option value="0">无上级部门</option>
							<?php
								foreach($list[0] as $v){
									$s = $info['pid'] == $v['id'] ? 'selected' : '';
									echo '<option value="' . $v['id'] . '" ' . $s . '>' . $v['name'] . '</option>' . "\n";
									if(@$list[$v['id']]){
										foreach($this->m->drawTree($list[$v['id']], $list, 0) as $vv){
											$s = $info['pid'] == $vv['id'] ? 'selected' : '';
											echo '<option value="' . $vv['id'] . '" ' . $s . '>' . $vv['name'] . '</option>' . "\n";
										}
									}
									$this->m->datas = array();
								}
							?>
							</select>
                        </td>
                      </tr>
                      <tr>
                        <td class="table_left">部门名称：</td>
                        <td>
							<input type="text" name="name" value="<?php echo $info['name'] ?>" />
							<?php echo form_error('name') ?>
						</td>
                      </tr>
					  <tr>
                        <td class="table_left">排序序号：</td>
                        <td>
							<input type="text" name="ordernum" value="<?php echo $info['ordernum'] ?>" />
							<?php echo form_error('ordernum') ?>
						</td>
                      </tr>
                      <tr>
                        <td class="table_left">部门描述：</td>
                       <td><textarea name="notes"><?php echo $info['notes'] ?></textarea></td>
                      </tr>
                      <tr>
                        <td></td>
                        <td class="function_button"><input name="submit" type="submit" value="提交" /><input name="reset" type="reset" value="取消" /><a href="#" onclick="javascript:window.history.back()">返回</a></td>
                      </tr>
                    </table>
               

			</div>
           
            </form>
        </div>
		
		<!-- -----------------------------------编辑区---------------------------------- -->
		
    </div>
    <?php include 'system_footer.php' ?>
</div>

</body>
</html>
